@{
    ViewBag.Title = "字典管理";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = SF.utility.request('keyValue');
    $(function () {
        initControl();
    })
    //初始化控件
    function initControl() {
        //获取表单
        if (!!keyValue) {
            SF.utility.setForm({
                url: "/Api/DataItemDetail/" + keyValue,
                success: function (data) {
                    SF.utility.setWebControls('form1', data);
                    $("#form1").find('.form-control,.ui-select,input').attr('disabled', 'disabled');
                }
            });
        }
       
    }

  
</script>
<div style="margin-top: 20px; margin-right: 30px;">
    <input id="ParentId" type="hidden" />
    <input id="ItemId" type="hidden" />
    <table class="form">
        <tr>
            <td class="formTitle">
                项目名
            </td>
            <td class="formValue">
                <input id="ItemName" name="ItemName" type="text" o class="form-control" placeholder="请输入名称" isvalid="yes" checkexpession="NotNull" />
            </td>
        </tr>
        <tr>
            <td class="formTitle">
                项目值
            </td>
            <td class="formValue">
                <input id="ItemValue" name="ItemValue" type="text" class="form-control" placeholder="请输入项目值" isvalid="yes" checkexpession="NotNull" />
            </td>
        </tr>
        <tr>
            <td class="formTitle">
                排序
            </td>
            <td class="formValue">
                <input id="SortIndex" name="SortIndex" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
            </td>
        </tr>
        <tr>
            <th class="formTitle" style="height: 37px;"></th>
            <td class="formValue">
                <div class="checkbox">
                    <label>
                        <input id="EnabledMark" type="checkbox" checked="checked" />
                        有效
                    </label>
                </div>
            </td>
        </tr>
        <tr>
            <th class="formTitle" valign="top" style="padding-top: 4px;">
                备注
            </th>
            <td class="formValue">
                <textarea id="Description" class="form-control" style="height: 70px;"></textarea>
            </td>
        </tr>
    </table>
</div>
@*<div class="block-content">
        <div class="panel panel_no_boder panel-block">
            <div class="panel-body form-horizontal">
                <div class="alert alert-danger" style="display:none;">
                </div>
                <input id="ParentId" type="hidden" />
                <input id="ItemId" type="hidden" />
                <fieldset>
                    <div class="form-group data-text-box  required">
                        <label class="col-md-3 control-label" for="ItemName">项目名</label>
                        <div class="col-md-9 control-wrapper">

                        </div>
                    </div>
                    <div class="form-group data-text-box  required">
                        <label class="col-md-3 control-label" for="ItemCode">编号</label>
                        <div class="col-md-9 control-wrapper">

                        </div>
                    </div>
                    <div class="form-group data-text-box  required">
                        <label class="col-md-3 control-label" for="SortIndex">排序</label>
                        <div class="col-md-9 control-wrapper">

                        </div>
                    </div>
                    <div class="form-group data-text-box  required">
                        <label class="col-md-3 control-label"></label>
                        <div class="col-md-9 control-wrapper">
                            <div class="checkbox">
                                <label>
                                    <input id="EnabledMark" type="checkbox" checked="checked" />
                                    有效
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group data-text-box ">
                        <label class="col-md-3 control-label" for="Description">备注</label>
                        <div class="col-md-9 control-wrapper">
                            <textarea id="Description" class="form-control" style="height: 70px;"></textarea>
                        </div>

                    </div>
                </fieldset>
            </div>
        </div>
    </div>*@


